Fix problem in self-closing tags in GPX extensions, such as would be found in geocach...
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Jul 2013 00:14:34 +0000 (00:14 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 10 Jul 2013 00:14:34 +0000 (00:14 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4415 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gpx.cc

index 1b57bdbf4a27f4259e1e8d02be11108e337e1fd3..da7b551b3cab80e52c0f178d8ef335a900ddb1c2 100644 (file)
@@ -1429,6 +1429,8 @@ fprint_xml_chain(xml_tag* tag, const waypoint* wpt)
 
     if (!tag->cdata && !tag->child) {
       write_tag_attributes(tag);
+      // No children?  Self-closing tag.
+      writer.writeEndElement();
     } else {
       write_tag_attributes(tag);